import { createApp } from 'vue'
import App from './App.vue'
import router from './utils/router.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios'
import store from './store/store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
axios.defaults.baseURL='http://localhost:8080'
app.use(router)
app.use(store)
app.use(ElementPlus,{ size: 'small', zIndex: 3000 })
app.config.globalProperties.$http = axios//进行全局挂载
app.mount('#app')//指定要挂载的区域

